/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.singleton;

import ac.za.designPatterns.creational.singleton.factory.HireDate;

/**
 *
 * @author Sandiso Toto
 */
public class MainDriver {
    public static void main(String[] args){
       
        HireDate employeeA =  HireDate.instanceOfHireDate();
        HireDate employeeB =  HireDate.instanceOfHireDate();
        
        

        System.out.println( "Date employed: " + employeeA.getDateEmployed());
        System.out.println("Date employed: " + employeeB.getDateEmployed());
        System.out.println( "" + employeeA);
        System.out.println("" + employeeB);
    
    
    }
    
}
